<?php

class IndexAction extends CommonAction{
    public function index(){
        $this->display();
    }

    //后台头部模板
    public function top(){
        $this->display('admin_top');
    }

    //后台导航模板
    public function left(){
        $this->display('left');
    }

    //后台内容模板
    public function ritht(){
        $this->display('type');
    }

    public function right2(){
        $this->display('right2');
    }
	
	//退出登录
	public function loginOut(){
		session_unset();
		session_destroy();
		redirect(U('Login'));
	}
}
?>